package com.xxgc.wujiaosocket.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Component 给spring进行管理
 * @Slf4j 打印日志
 */
@Slf4j
@Component
public class HelloJob {

    @XxlJob("sayHello")
    public void sayHello(){
        log.info("我被任务调度中心调度了");
    }
}
